package com.ymk.service.impl;

import com.ymk.base.mybatis.DaoRouter;
import com.ymk.base.mybatis.Pagination;
import com.ymk.bo.work.WorkShareLogBO;
import com.ymk.service.IWorkShareLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 岗位分享记录表 服务实现类
 * </p>
 *
 * @author 莫参商
 * @since 2023-08-01
 */
@Service
public class WorkShareLogService implements IWorkShareLogService {

    @Override
    public WorkShareLogBO get(Map param) {
    return this.daoRouter.queryForObject("WorkShareLog.loadWorkShareLog",param);
    }

    @Override
    public List<WorkShareLogBO> list(Map param) {
        return this.daoRouter.query("WorkShareLog.loadWorkShareLog",param);
    }

    @Override
    public List<WorkShareLogBO> listForPage(Pagination pagination) {
        return this.daoRouter.query("WorkShareLog.loadWorkShareLogForPage",pagination);
    }

    @Override
    public void post(WorkShareLogBO param) {
        this.daoRouter.insert("AWorkShareLog.insertWorkShareLog",param);
    }

    @Override
    public void update(WorkShareLogBO param) {
        this.daoRouter.update("AWorkShareLog.updateWorkShareLog",param);
    }

    @Override
    public void del(WorkShareLogBO param) {
        this.daoRouter.update("AWorkShareLog.delWorkShareLog",param);
    }

    @Autowired
    private DaoRouter daoRouter;

}
